home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Answers 2002 January
/
PC Answers January 2002.7z
/
PC Answers January 2002.bin
/
trial
/
intrlnch
/
IntraLaunch.EXE
/
utils
/
convert.txt
< prev
next >
Wrap
Text File
|
1999-04-21
|
4KB
|
99 lines
Use this program to automatically convert an <OBJECT> tag for IE only into
a <OBJECT>/<EMBED> tag for both IE and Netscape. You could just as easily
copy and paste this with a text editor instead. Notice the difference
in "Browser" parameter and the format for the ImageSrc.
See FAQ for more information.
Sample Input Document(IE Only):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<HTML>
<BODY>
<OBJECT ID="IntraLaunch" WIDTH=65 HEIGHT=77 CLASSID="CLSID:A2CD1E17-F7F7-11D2-A44A-0020182C1446" CODEBASE="file:///C:\IntraLaunch\sample\IntraLaunch.CAB#version=3,3,0,0">
<PARAM NAME="_ExtentX" VALUE="2240">
<PARAM NAME="_ExtentY" VALUE="1963">
<PARAM NAME="ImageLoc" VALUE="Local">
<PARAM NAME="ImageSrc" VALUE="F:\intranet\web\somepic.jpg">
<PARAM NAME="Run" VALUE="c:\MicrosoftWord\word.exe">
<PARAM NAME="RunParms" VALUE="">
<PARAM NAME="DefDir" VALUE="C:\">
<PARAM NAME="Display" VALUE="MAX">
<PARAM NAME="UsePassword" VALUE="FALSE">
<PARAM NAME="Password" VALUE="0000000000000000">
<PARAM NAME="Sound" VALUE="None">
<PARAM NAME="Pause" VALUE="0">
<PARAM NAME="IsURL" VALUE="FALSE">
<PARAM NAME="ProcessErr" VALUE="MessageBox">
<PARAM NAME="ErrAction" VALUE="Error|Sorry, cannot find file to open">
<PARAM NAME="RecallApp" VALUE="False">
<PARAM NAME="AndRestore" VALUE="True">
<PARAM NAME="MapDrive" VALUE="\\SERVER\ShareName|X:">
<PARAM NAME="LogPass" VALUE="Null|Null|Debug">
<PARAM NAME="AutoMap" VALUE="False">
</OBJECT>
</HTML>
</BODY>
Sample Output Document(IE & Netscape/ScriptActive):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<HTML>
<BODY>
<OBJECT ID="IntraLaunch" WIDTH=65 HEIGHT=77 CLASSID="CLSID:A2CD1E17-F7F7-11D2-A44A-0020182C1446" CODEBASE="file:///C:\IntraLaunch\sample\IntraLaunch.CAB#version=3,3,0,0">
<PARAM NAME="_ExtentX" VALUE="2240">
<PARAM NAME="_ExtentY" VALUE="1963">
<PARAM NAME="ImageLoc" VALUE="Local">
<PARAM NAME="ImageSrc" VALUE="F:\intranet\web\somepic.jpg">
<PARAM NAME="Run" VALUE="c:\MicrosoftWord\word.exe">
<PARAM NAME="RunParms" VALUE="">
<PARAM NAME="DefDir" VALUE="C:\">
<PARAM NAME="Display" VALUE="MAX">
<PARAM NAME="UsePassword" VALUE="FALSE">
<PARAM NAME="Password" VALUE="0000000000000000">
<PARAM NAME="Sound" VALUE="None">
<PARAM NAME="Pause" VALUE="0">
<PARAM NAME="IsURL" VALUE="FALSE">
<PARAM NAME="ProcessErr" VALUE="MessageBox">
<PARAM NAME="ErrAction" VALUE="Error|Sorry, cannot find file to open">
<PARAM NAME="RecallApp" VALUE="False">
<PARAM NAME="AndRestore" VALUE="True">
<PARAM NAME="MapDrive" VALUE="\\SERVER\ShareName|X:">
<PARAM NAME="LogPass" VALUE="Null|Null|Debug">
<PARAM NAME="AutoMap" VALUE="False">
<EMBED NAME="IntraLaunch" WIDTH=65 HEIGHT=77 CLASSID="CLSID:A2CD1E17-F7F7-11D2-A44A-0020182C1446" CODEBASE="file:///C:\IntraLaunch\sample\IntraLaunch.CAB#version=3,3,0,0" TYPE="application/oleobject"
PARAM__ExtentX="2240"
PARAM__ExtentY="1963"
PARAM_ImageLoc="Local"
PARAM_ImageSrc="F:\intranet\web\somepic.jpg"
PARAM_Run="c:\MicrosoftWord\word.exe"
PARAM_RunParms=""
PARAM_DefDir="C:\"
PARAM_Display="MAX"
PARAM_UsePassword="FALSE"
PARAM_Password="0000000000000000"
PARAM_Sound="None"
PARAM_Pause="0"
PARAM_IsURL="FALSE"
PARAM_ProcessErr="MessageBox">
PARAM_ErrAction="Error|Sorry, cannot find file to open">
PARAM_RecallApp="False"
PARAM_AndRestore="True"
PARAM_MapDrive="\\SERVER\ShareName|X:"
PARAM_LogPass="Null|Null|Debug"
PARAM_AutoMap="False"
></OBJECT>
</HTML>
</BODY>
Note: The "ImageLoc" parameter must be manually changed to
"Local" for Netscape, The "Remote" getting of graphics will not
work due to a ScriptActive limitation. Therefor the "ImageSrc"
parameter can't be a URL, it must be an absolute file path.
See FAQ for more info.
Netscape 4 ignores <OBJECT>'s within table cells, so you can't do the
above most of the time. You have to use the <EMBED> part only, so it
will only work in Netscape.